CMAKE_MINIMUM_REQUIRED(VERSION 3.0)

include_directories(${COMN_DIR}/include)
include_directories(${PROJECT_ROOT}/http)
include_directories(${PROJECT_ROOT}/http/jsoncpp-0.10.6/include)

if (WIN32)
    include_directories(${THIRD_PARTY}/stdint)
endif()

link_directories(${PROJECT_ROOT}/lib)
link_directories(${COMN_DIR}/lib)


if (MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
else()
endif()

aux_source_directory(. SOURCES)
add_executable(DemoUpload ${SOURCES})


target_link_libraries(DemoUpload
	debug comnd optimized comn
	${LIB_PLATFORM}
	debug httpd optimized http
	)

install(TARGETS DemoUpload DESTINATION .)


